﻿using System.ComponentModel.DataAnnotations;

namespace MvcBook.Models
{
    public class Book
    {
            public int Id{ get; set; }
            [Display(Name = "书籍名称")]
            public string?Title { get; set; }
            [Display(Name = "作者")]
            public string?Author { get; set; }
            [Display(Name = "出版社名")]
            public string?Publisher { get; set; }
            [Display(Name = "出版日期")]
            [DataType(DataType.Date)]
            public DateTime PublishingTime { get; set; }
            [Display(Name = "价格")]
            [DataType(DataType.Currency)]
            public decimal Price { get; set; }
    }
}
